package com.hnit.rol.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hnit.rol.commonutils.Result;
import com.hnit.rol.model.entity.order.OrderInfo;
import com.hnit.rol.model.entity.order.OrderInfoShow;
import com.hnit.rol.model.vo.order.OrderInfoVo;
import com.hnit.rol.model.vo.order.OrderQueryCondition;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author King
 * @since 2023-04-08
 */
public interface IOrderInfoService extends IService<OrderInfo> {
    // 分页查询获取订单信息
    Page<OrderInfo> pageQueryOrder(Long index, Long limit, OrderQueryCondition queryCondition);

    //生成订单信息，需要书籍信息和用户信息
    OrderInfoShow generateOrder(Long id);

    void insertShoppingCart(OrderInfo order);
}
